{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is:  vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
-->*}
{strip}
    <div class="pl-3">
        <form id="exportForm" class="form-horizontal row" method="post" action="index.php">
            <input type="hidden" name="module" value="{$MODULE}" />
            <input type="hidden" name="source_module" value="{$SOURCE_MODULE}" />
            <input type="hidden" name="action" value="ExportData" />
            <input type="hidden" name="viewname" value="{$VIEWID}" />
            <input type="hidden" name="selected_ids" value="{\App\Purifier::encodeHtml(\App\Json::encode($SELECTED_IDS))}">
            <input type="hidden" name="excluded_ids" value="{\App\Purifier::encodeHtml(\App\Json::encode($EXCLUDED_IDS))}">
            <input type="hidden" id="page" name="page" value="{$PAGE}" />
            <input type="hidden" name="search_key" value= "{$SEARCH_KEY}" />
            <input type="hidden" name="operator" value="{$OPERATOR}" />
            <input type="hidden" name="search_value" value="{$ALPHABET_VALUE}" />
            <input type="hidden" name="search_params" value="{\App\Purifier::encodeHtml(\App\Json::encode($SEARCH_PARAMS))}" />

            <div class="w-100">
                <div class="span">&nbsp;</div>
                <div class="col-md-10">
                    <h4>
						<span class="fas fa-upload mr-1"></span>
						{\App\Language::translate('LBL_EXPORT_RECORDS',$MODULE)}
					</h4>
					<div class="alert alert-warning">
						<a href="#" class="close" data-dismiss="alert">&times;</a>
						{\App\Language::translate('LBL_INFO_USER_EXPORT_RECORDS',$MODULE)}
					</div>
                    <div class="well bg-light border ml-0">
                        <fieldset>
                            <legend class="d-none">{\App\Language::translate('LBL_EXPORT_RECORDS',$MODULE)}</legend>
							<div class="row">
								<div class="col-md-6 textAlignRight row">
									<div class="col-md-8">{\App\Language::translate('LBL_EXPORT_SELECTED_RECORDS',$MODULE)}&nbsp;</div>
									<div class="col-md-3">
										<input type="radio" name="mode" title="{\App\Language::translate('LBL_EXPORT_SELECTED_RECORDS')}" value="ExportSelectedRecords" {if !empty($SELECTED_IDS)} checked="checked" {else} disabled="disabled"{/if}/>
									</div>
								</div>
								<div class="col-md-6">
									{if empty($SELECTED_IDS)}&nbsp; <span class="redColor">{\App\Language::translate('LBL_NO_RECORD_SELECTED',$MODULE)}</span>{/if}
								</div>
							</div>
							<div class="row">
								<div class="col-md-6 textAlignRight row">
									<div class="col-md-8">{\App\Language::translate('LBL_EXPORT_ALL_DATA',$MODULE)}&nbsp;</div>
									<div class="col-md-3"><input type="radio"  name="mode" value="ExportAllData" title="{\App\Language::translate('LBL_EXPORT_ALL_DATA',$MODULE)}" {if empty($SELECTED_IDS)} checked="checked" {/if} /></div>
								</div>
							</div>
                        </fieldset>
                    </div>
                    <br />
                    <div class="textAlignCenter">
                        <button class="btn btn-success mr-1" type="submit">
							<strong>
								<span class="fas fa-upload mr-1"></span>
								{\App\Language::translate($MODULE, $MODULE)}&nbsp;{\App\Language::translate($SOURCE_MODULE, $SOURCE_MODULE)}
							</strong>
						</button>
                        <button class="btn btn-danger" type="reset" onclick='window.history.back()'>
							<span class="fas fa-times mr-1"></span>
							{\App\Language::translate('LBL_CANCEL', $MODULE)}
						</button>
                    </div>
                </div>
            </div>
	</div>
</form>
</div>
{/strip}
